package com.dragon.mmochat.model.enumType;

public enum MmochatPlayerShopType {
	道具店(1), 材料店(2), 装备店(3), 杂货店(4), 宠物店(5);

	int key;

	MmochatPlayerShopType(int key) {
		this.key = key;
	}

	public int getKey() {
		return key;
	}

	public static MmochatPlayerShopType get(int key) {
		for (MmochatPlayerShopType type : MmochatPlayerShopType.values()) {
			if (type.getKey() == key) {
				return type;
			}
		}
		return null;
	}
}
